{extend name="layout/layout" /}

{block name="content"}
<div class="layui-card">
    <div class="layui-card-header">
        <h3>签到规则管理</h3>
    </div>
    <div class="layui-card-body">
        <form class="layui-form" action="" lay-filter="checkin-rules-form">
            <div class="layui-form-item">
                <label class="layui-form-label">连续签到奖励</label>
                <div class="layui-input-block">
                    <input type="text" name="continuous_reward" placeholder="请输入连续签到奖励积分" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">每日签到积分</label>
                <div class="layui-input-block">
                    <input type="text" name="daily_points" placeholder="请输入每日签到积分" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">签到状态</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="status" lay-skin="switch" lay-text="开启|关闭">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="submit">保存设置</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}

{block name="script"}
<script>
layui.use(['form'], function(){
    var form = layui.form;
    
    form.on('submit(submit)', function(data){
        // 提交表单逻辑
        return false;
    });
});
</script>
{/block}